package com.jkhan.springframework.test.bean;

/**
 * @ClassName UserService
 * @Description UserService
 * @Author hjk
 * @Date 2022/12/6 23:20
 **/
public class UserService {

    private String name;

    public UserService() {

    }

    public UserService(String name) {
        this.name = name;
    }

    public void queryUserInfo() {
        System.out.println("查询用户信息: " + name);
    }

    @Override
    public String toString() {
        final StringBuilder builder = new StringBuilder("");
        builder.append("").append(name);
        return builder.toString();
    }
}
